:: $Date: 2009-03-02 09:09:42 +0000 (Mon, 02 Mar 2009) $
:: $Author: bch.itbgcthate $

@echo off

setlocal
if "%1"=="" (goto main.default) else (goto main.spec)

:main.default
    set path=%~dp0hop;%path%
    call hop svn cleanup jude 
    call hop svn co https://judetheobscure.googlecode.com/svn/trunk jude --username %hop!name% --password %hop!pass%
    call jude\jude cmd
    goto :done

:main.spec
    cmd /k %*
    goto :done

:done
    echo DONE
    color d0
    cmd /k

endlocal